from flask import Blueprint, session

comment = Blueprint("comment", __name__)


@comment.before_request
def check_login():
    if session.get('isLogin') is not True:
        return 'Login is required.'
    else:
        pass


@comment.route("/comment")
def user_comment():
    return "Good!you are commented!"
